import 'package:flutter/material.dart';

class AddressBook {
  const AddressBook({
    @required this.avatar,
    this.title
  }) : assert(avatar != null);
  final String avatar;//图片
  final String title;//标题
}

const List<AddressBook> mockAddressBook = [
  const AddressBook(avatar: 'assets/images/ic_tx_news.png',title: '新的朋友'),
  const AddressBook(avatar: 'assets/images/ic_wx_games.png',title: '群聊'),
  const AddressBook(avatar: 'https://randomuser.me/api/portraits/men/39.jpg',title: '标签'),
  const AddressBook(avatar: 'https://randomuser.me/api/portraits/women/40.jpg',title: '公众号'),
  const AddressBook(avatar: 'assets/images/ic_fengchao.png',title: '爸爸陈勇'),
  const AddressBook(avatar: 'https://randomuser.me/api/portraits/women/46.jpg',title: '弟弟'),
  const AddressBook(avatar: 'assets/images/ic_tx_news.png',title: '妈咪一帆风顺'),
  const AddressBook(avatar: 'assets/images/ic_tx_news.png',title: '你'),
  const AddressBook(avatar: 'assets/images/ic_tx_news.png',title: 'AAA一静静花屋'),
];